<?php

/**
 * @deprecated Pouzi triedu Db_DbTable_*
 * 
 * HarmonogramUchazeci
 *  
 * @author Radovan Dvorsky
 * @version 20091203
 *  
 */

require_once 'Zend/Db/Table/Abstract.php';

class Db_HarmonogramUchazeci extends Zend_Db_Table_Abstract {
	
	/**
	 * Primary keys	 
	 */
	protected $_primary = array('hid','id_uchazece');
	
	/**
	 * The default table name 
	 */
	protected $_name = 'harmonogram_uchazeci';
	
	/**
	 * Nie je nastaveny primary key, pouziva natural key 
	 */
	protected $_sequence = false;
	
	/**
	 * Parrent tables description 
	 */
	protected $_referenceMap = array(
		'Harmonogram' => array(
			'columns' => array('hid'),
			'refTableClass' => 'Db_Harmonogram',
			'refColumns' => array('hid'),
			'onDelete' => self::CASCADE
		),
		'Student' => array(
			'columns' => array('ID_st'),
			'refTableClass' => 'Db_Student',
			'refColumns' => array('ID_st'),
		)
	);	
}

